From: Owen W. Taylor Date: Sat, 4 Jul 2009 13:14:44 +0000 (+0100) Subject: Hide the running-apps area when empty X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~11234 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=f44b3e0553262e33ae869a1c1d68a314c2f0fe10;p=gnome-shell.git Hide the running-apps area when empty It looks funny to have the "more running apps area" there as a gap when empty and dragging to it is an unintuitive way to remove stuff from the favorites list, in any case, so just hide the area when empty. http://bugzilla.gnome.org/show_bug.cgi?id=587720 --- diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index e7f15f2e2..41dfe7ae5 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -663,11 +663,11 @@ AppWell.prototype = { }); this._favoritesArea.redisplay(favorites); this._runningArea.redisplay(running); - // If it's empty, we need to provide a minimum drop target + // If it's empty, we hide it so the top border doesn't show up if (running.length == 0) - this._runningArea.actor.set_size(this._width, 50); + this._runningBox.hide(); else - this._runningArea.actor.set_size(-1, -1); + this._runningBox.show(); } };